package com.hoshino.momochi.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hoshino.momochi.model.CreateTime;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class Admin extends CreateTime {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("loginName")
    private String loginName;

    private String password;

    @TableField("lastLoginTime")
    private LocalDateTime lastLoginTime;

    private String remark;

    @TableField(exist = false)
    private List<Student> studentList;
}
